Improved Symmetric Lists

نویسندگان

  • Christian Bachmaier
  • Marcus Raitner
چکیده

We introduce a new data structure called symlist based on an idea of Tarjan [17]. A symlist is a doubly linked list without any directional information encoded into its cells. In a symlist the two pointers in each cell have no fixed meaning like previous or next in standard lists. Besides the common operations on doubly linked lists, symlists support the reversal of a list and the insertion of a (reversed) symlist into another one, both in constant time. This is an improvement over common implementations, e. g., the Stl class list, where reversal needs linear time. A typical application of symlists is storing the children of a so called Qnode in a PQ-tree, a data structure used in linear time graph planarity testing algorithms. We show that a straightforward implementation of Tarjan’s idea [17] leads to an anomaly when inserting a new element and provide a simple solution to avoid it. Finally, we present an implementation of symlists with iterators that is similar to the Stl class list and its iterators.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Some results on the symmetric doubly stochastic inverse eigenvalue problem

‎The symmetric doubly stochastic inverse eigenvalue problem (hereafter SDIEP) is to determine the necessary and sufficient conditions for an $n$-tuple $sigma=(1,lambda_{2},lambda_{3},ldots,lambda_{n})in mathbb{R}^{n}$ with $|lambda_{i}|leq 1,~i=1,2,ldots,n$‎, ‎to be the spectrum of an $ntimes n$ symmetric doubly stochastic matrix $A$‎. ‎If there exists an $ntimes n$ symmetric doubly stochastic ...

متن کامل

An improved infeasible‎ ‎interior-point method for symmetric cone linear complementarity‎ ‎problem

We present an improved version of a full Nesterov-Todd step infeasible interior-point method for linear complementarityproblem over symmetric cone (Bull. Iranian Math. Soc., 40(3), 541-564, (2014)). In the earlier version, each iteration consisted of one so-called feasibility step and a few -at most three - centering steps. Here, each iteration consists of only a feasibility step. Thus, the new...

متن کامل

Ordered multiplicity lists for eigenvalues of symmetric matrices whose graph is a linear tree

We consider the class of trees for which all vertices of degree at least 3 lie on a single induced path of the tree. For such trees, a new superposition principle is proposed to generate all possible orderedmultiplicity lists for the eigenvalues of symmetric (Hermitian)matrices whose graph is such a tree. It is shown that no multiplicity lists other than these can occur and that for two subclas...

متن کامل

IMPROVING THE SELECTION SYMMETRIC WEIGHTS AS A SECONDARY GOAL IN DEA CROSS-EFFICIENCY EVALUATION

Recently, some authors proposed the use of symmetric weightsfor computing the elements of cross-efficiency matrix. In spite ofthe fact that the proposed method decreases the number of zeroweights, a large number of zero weights may still exist among inputand output symmetric weights. To decrease the number of input andoutput symmetric weights, this paper improves the proposed secondarygoal mode...

متن کامل

More on the Reliability Function of the BSC

An improved upper bound is given for the maximum attainable exponent of the error probability of maxlikelihood decoding on a binary symmetric channel (the reliability function of the channel). Disciplines Computer Sciences | Physical Sciences and Mathematics Comments Suggested Citation: Barg, A. and A. McGregor. (2003). "More on the reliability function of the BSC." Proceedings of the Internati...

متن کامل

A New Hybrid Framework for Filter based Feature Selection using Information Gain and Symmetric Uncertainty (TECHNICAL NOTE)

Feature selection is a pre-processing technique used for eliminating the irrelevant and redundant features which results in enhancing the performance of the classifiers. When a dataset contains more irrelevant and redundant features, it fails to increase the accuracy and also reduces the performance of the classifiers. To avoid them, this paper presents a new hybrid feature selection method usi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003